package com.buddy.learn.spring.demo.aspect;

import com.buddy.learn.spring.framework.aop.aspect.BJoinPoint;

public class LogAspect {

    public void before(BJoinPoint joinPoint) {

        //往对象里面记录下调用的开始时间
//        joinPoint.get
//            joinPoint.setA
        joinPoint.setUserAttribute("","");
    }

    public void after() {
        //系统当前时间-之前记录的开始时间=方法调用所消耗的时间
        //就能够检测出放大执行性能
    }

    public void afterThrowing() {
        //异常检测，可拿到异常信息
    }
}
